JDK-8303797 : Replace vmassert constexpr detection with std::is_constant_evaluated
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 21
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2023-03-08
  • Updated: 2023-03-08
  • Resolved: 2023-03-08
Related Reports
Relates :  
Description
vmassert and friends make use of compiler intrinsics (if available) to detect evaluation in a constexpr context.  Once we're using C++20 we can instead use std::is_constant_evaluated for that purpose.

Comments
Reopen when we can use C++20. Labelled with cpp20 so we can find it and others like it.
08-03-2023