File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -980,6 +980,7 @@ void CodeBuffer::take_over_code_from(CodeBuffer* cb) {
980
980
981
981
void CodeBuffer::verify_section_allocation () {
982
982
address tstart = _total_start;
983
+ if (tstart == nullptr ) return ; // ignore not fully initialized buffer
983
984
if (tstart == badAddress) return ; // smashed by set_blob(nullptr)
984
985
address tend = tstart + _total_size;
985
986
if (_blob != nullptr ) {
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 1997, 2024 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 1997, 2025 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -455,6 +455,8 @@ class CodeBuffer: public StackObj DEBUG_ONLY(COMMA private Scrubber) {
455
455
_name = name;
456
456
_before_expand = nullptr ;
457
457
_blob = nullptr ;
458
+ _total_start = nullptr ;
459
+ _total_size = 0 ;
458
460
_oop_recorder = nullptr ;
459
461
_overflow_arena = nullptr ;
460
462
_last_insn = nullptr ;
You can’t perform that action at this time.
0 commit comments