< prev index next >

src/hotspot/share/asm/codeBuffer.hpp

Print this page




 396     // all pointers other than code_start/end and those inside the sections
 397     assert(name != NULL, "must have a name");
 398     _name            = name;
 399     _before_expand   = NULL;
 400     _blob            = NULL;
 401     _oop_recorder    = NULL;
 402     _decode_begin    = NULL;
 403     _overflow_arena  = NULL;
 404     _code_strings    = CodeStrings();
 405     _last_insn       = NULL;
 406 #if INCLUDE_AOT
 407     _immutable_PIC   = false;
 408 #endif
 409 
 410     // Collect block comments, but restrict collection to cases where a disassembly is output.
 411     _collect_comments = ( PrintAssembly
 412                        || PrintStubCode
 413                        || PrintMethodHandleStubs
 414                        || PrintInterpreter
 415                        || PrintSignatureHandlers
 416                        || UnlockDiagnosticVMOptions
 417                         );
 418   }
 419 
 420   void initialize(address code_start, csize_t code_size) {
 421     _consts.initialize_outer(this,  SECT_CONSTS);
 422     _insts.initialize_outer(this,   SECT_INSTS);
 423     _stubs.initialize_outer(this,   SECT_STUBS);
 424     _total_start = code_start;
 425     _total_size  = code_size;
 426     // Initialize the main section:
 427     _insts.initialize(code_start, code_size);
 428     assert(!_stubs.is_allocated(),  "no garbage here");
 429     assert(!_consts.is_allocated(), "no garbage here");
 430     _oop_recorder = &_default_oop_recorder;
 431   }
 432 
 433   void initialize_section_size(CodeSection* cs, csize_t size);
 434 
 435   void freeze_section(CodeSection* cs);
 436 




 396     // all pointers other than code_start/end and those inside the sections
 397     assert(name != NULL, "must have a name");
 398     _name            = name;
 399     _before_expand   = NULL;
 400     _blob            = NULL;
 401     _oop_recorder    = NULL;
 402     _decode_begin    = NULL;
 403     _overflow_arena  = NULL;
 404     _code_strings    = CodeStrings();
 405     _last_insn       = NULL;
 406 #if INCLUDE_AOT
 407     _immutable_PIC   = false;
 408 #endif
 409 
 410     // Collect block comments, but restrict collection to cases where a disassembly is output.
 411     _collect_comments = ( PrintAssembly
 412                        || PrintStubCode
 413                        || PrintMethodHandleStubs
 414                        || PrintInterpreter
 415                        || PrintSignatureHandlers

 416                         );
 417   }
 418 
 419   void initialize(address code_start, csize_t code_size) {
 420     _consts.initialize_outer(this,  SECT_CONSTS);
 421     _insts.initialize_outer(this,   SECT_INSTS);
 422     _stubs.initialize_outer(this,   SECT_STUBS);
 423     _total_start = code_start;
 424     _total_size  = code_size;
 425     // Initialize the main section:
 426     _insts.initialize(code_start, code_size);
 427     assert(!_stubs.is_allocated(),  "no garbage here");
 428     assert(!_consts.is_allocated(), "no garbage here");
 429     _oop_recorder = &_default_oop_recorder;
 430   }
 431 
 432   void initialize_section_size(CodeSection* cs, csize_t size);
 433 
 434   void freeze_section(CodeSection* cs);
 435 


< prev index next >