8372938: Fix reference to DeferredStatic<T> in HotSpot Style Guide

Reviewed-by: stefank, jsjolen
This commit is contained in:
Kim Barrett
2025-12-04 08:32:00 +00:00
parent 771253e285
commit bb867ed23e
2 changed files with 3 additions and 3 deletions

View File

@@ -1037,8 +1037,8 @@ running destructors at exit can lead to problems.</p>
<p>Some of the approaches used in HotSpot to avoid dynamic <p>Some of the approaches used in HotSpot to avoid dynamic
initialization include:</p> initialization include:</p>
<ul> <ul>
<li><p>Use the <code>Deferred&lt;T&gt;</code> class template. Add a call <li><p>Use the <code>DeferredStatic&lt;T&gt;</code> class template. Add
to its initialization function at an appropriate place during VM a call to its initialization function at an appropriate place during VM
initialization. The underlying object is never destroyed.</p></li> initialization. The underlying object is never destroyed.</p></li>
<li><p>For objects of class type, use a variable whose value is a <li><p>For objects of class type, use a variable whose value is a
pointer to the class, initialized to <code>nullptr</code>. Provide an pointer to the class, initialized to <code>nullptr</code>. Provide an

View File

@@ -954,7 +954,7 @@ destructors at exit can lead to problems.
Some of the approaches used in HotSpot to avoid dynamic initialization Some of the approaches used in HotSpot to avoid dynamic initialization
include: include:
* Use the `Deferred<T>` class template. Add a call to its initialization * Use the `DeferredStatic<T>` class template. Add a call to its initialization
function at an appropriate place during VM initialization. The underlying function at an appropriate place during VM initialization. The underlying
object is never destroyed. object is never destroyed.