void Runtime1::initialize(BufferBlob* blob) { // platform-dependent initialization initialize_pd(); // generate stubs for (int id = 0; id < number_of_ids; id++) generate_blob_for(blob, (StubID)id); // printing #ifndef PRODUCT if (PrintSimpleStubs) { ResourceMark rm; for (int id = 0; id < number_of_ids; id++) { _blobs[id]->print(); if (_blobs[id]->oop_maps() != NULL) { _blobs[id]->oop_maps()->print(); } } } #endif }
void Runtime1::initialize() { // Warning: If we have more than one compilation running in parallel, we // need a lock here with the current setup (lazy initialization). if (!is_initialized()) { _is_initialized = true; // platform-dependent initialization initialize_pd(); // generate stubs for (int id = 0; id < number_of_ids; id++) generate_blob_for((StubID)id); // printing #ifndef PRODUCT if (PrintSimpleStubs) { ResourceMark rm; for (int id = 0; id < number_of_ids; id++) { _blobs[id]->print(); if (_blobs[id]->oop_maps() != NULL) { _blobs[id]->oop_maps()->print(); } } } #endif } }