File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
src/hotspot/share/jfr/recorder/checkpoint/types Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2017, 2024 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2017, 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
@@ -112,7 +112,9 @@ class ClearArtifact<const Method*> {
112
112
assert (METHOD_IS_NOT_LEAKP (method), " invariant" );
113
113
assert (METHOD_IS_NOT_TRANSIENT (method), " invariant" );
114
114
SET_PREVIOUS_EPOCH_METHOD_CLEARED_BIT (method);
115
- CLEAR_PREVIOUS_EPOCH_METHOD_FLAG (method);
115
+ if (METHOD_FLAG_USED_PREVIOUS_EPOCH_BIT (method)) {
116
+ CLEAR_PREVIOUS_EPOCH_METHOD_FLAG (method);
117
+ }
116
118
assert (IS_THIS_EPOCH_METHOD_CLEARED_BIT_SET (method), " invariant" );
117
119
assert (IS_PREVIOUS_EPOCH_METHOD_CLEARED_BIT_SET (method), " invariant" );
118
120
return true ;
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2016, 2024 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2016, 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
104
104
#define METHOD_FLAG_USED_THIS_EPOCH (method ) (METHOD_FLAG_PREDICATE(method, (TRANSIENT_BIT | THIS_EPOCH_BIT)))
105
105
#define METHOD_FLAG_NOT_USED_THIS_EPOCH (method ) (!(METHOD_FLAG_USED_THIS_EPOCH(method)))
106
106
#define METHOD_FLAG_USED_PREVIOUS_EPOCH (method ) (METHOD_FLAG_PREDICATE(method, (TRANSIENT_BIT | PREVIOUS_EPOCH_BIT)))
107
+ #define METHOD_FLAG_USED_PREVIOUS_EPOCH_BIT (method ) (METHOD_FLAG_PREDICATE(method, (PREVIOUS_EPOCH_BIT)))
107
108
#define METHOD_FLAG_NOT_USED_PREVIOUS_EPOCH (method ) (!(METHOD_FLAG_USED_PREVIOUS_EPOCH(method)))
108
109
#define IS_METHOD_BLESSED (method ) (METHOD_FLAG_PREDICATE(method, BLESSED_METHOD_BIT))
109
110
You can’t perform that action at this time.
0 commit comments