I noticed C2 has functions like LockNode::lock_type() that create a new TypeFunc each time, even though the data never changes. It seems like we could compute it once, lazily, and store it in static memory, or maybe even in read-only memory that is computed at build time with constexpr and a parameterized template type.
- relates to
-
JDK-8347987 Bad ifdef in 8330851
-
- Resolved
-
-
JDK-8347396 Efficient TypeFunc creations
-
- Open
-
- links to
-
Commit(master) openjdk/jdk/f5573f5c
-
Review(master) openjdk/jdk/21782