Skip to content

Commit 37c9fe5

Browse files
committedFeb 15, 2022
Initialize marking_cycle.
1 parent fa33ae7 commit 37c9fe5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/hotspot/share/code/nmethod.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -777,6 +777,7 @@ nmethod::nmethod(
777777
_comp_level = comp_level;
778778
_orig_pc_offset = orig_pc_offset;
779779
_hotness_counter = NMethodSweeper::hotness_counter_reset_val();
780+
_marking_cycle = CodeCache::marking_cycle();
780781

781782
// Section offsets
782783
_consts_offset = content_offset() + code_buffer->total_offset_of(code_buffer->consts());

0 commit comments

Comments
 (0)
Please sign in to comment.