mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-25 13:54:38 +02:00
6684579: SoftReference processing can be made more efficient
For current soft-ref clearing policies, we can decide at marking time if a soft-reference will definitely not be cleared, postponing the decision of whether it will definitely be cleared to the final reference processing phase. This can be especially beneficial in the case of concurrent collectors where the marking is usually concurrent but reference processing is usually not. Reviewed-by: jmasa
This commit is contained in:
parent
db6bef2c70
commit
7d7cf3f8af
18 changed files with 137 additions and 164 deletions
|
@ -65,8 +65,10 @@
|
|||
// COMPILER2 variant
|
||||
#ifdef COMPILER2
|
||||
#define COMPILER2_PRESENT(code) code
|
||||
#define NOT_COMPILER2(code)
|
||||
#else // COMPILER2
|
||||
#define COMPILER2_PRESENT(code)
|
||||
#define NOT_COMPILER2(code) code
|
||||
#endif // COMPILER2
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue