File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -210,9 +210,11 @@ void vmClasses::resolve_all(TRAPS) {
210210#endif 
211211
212212  InstanceStackChunkKlass::init_offset_of_stack ();
213+ #if  INCLUDE_CDS
213214  if  (CDSConfig::is_using_aot_linked_classes ()) {
214215    AOTLinkedClassBulkLoader::load_javabase_classes (THREAD);
215216  }
217+ #endif 
216218}
217219
218220#if  INCLUDE_CDS
Original file line number Diff line number Diff line change @@ -98,7 +98,9 @@ class TrainingData : public Metadata {
9898  //  It supports recursive locking and a read-only mode (in which case no locks are taken).
9999  //  It is also a part of the TD collection termination protocol (see the "snapshot" field).
100100  class  TrainingDataLocker  {
101+ #if  INCLUDE_CDS
101102    static  volatile  bool  _snapshot; //  If true we're not allocating new training data
103+ #endif 
102104    static  int  _lock_mode;
103105    const  bool  _recursive;
104106    static  void  lock () {
@@ -153,7 +155,9 @@ class TrainingData : public Metadata {
153155#endif 
154156    }
155157    static  void  assert_locked_or_snapshotted () {
158+ #if  INCLUDE_CDS
156159      assert (safely_locked () || _snapshot, " use under TrainingDataLocker or after snapshot"  );
160+ #endif 
157161    }
158162    static  void  assert_locked () {
159163      assert (safely_locked (), " use under TrainingDataLocker"  );
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments