We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9adc480 commit 44f5dfeCopy full SHA for 44f5dfe
src/hotspot/share/code/codeBlob.cpp
@@ -210,6 +210,8 @@ void CodeBlob::purge() {
210
if (_mutable_data != blob_end()) {
211
os::free(_mutable_data);
212
_mutable_data = blob_end(); // Valid not null address
213
+ _mutable_data_size = 0;
214
+ _relocation_size = 0;
215
}
216
if (_oop_maps != nullptr) {
217
delete _oop_maps;
src/hotspot/share/code/nmethod.cpp
@@ -2166,6 +2166,7 @@ void nmethod::purge(bool unregister_nmethod) {
2166
2167
CodeCache::unregister_old_nmethod(this);
2168
2169
+ JVMCI_ONLY( _metadata_size = 0; )
2170
CodeBlob::purge();
2171
2172
0 commit comments