News for hackers. Stuff that matters.
Re:Using JDK 9 Memory Order Modes by Flowdalic on Wednesday March 15, 2017 @06:00PM (#13880249)
Care to extend on that "polymorphic signature trick"?
Re:Using JDK 9 Memory Order Modes by aardvark179 on Wednesday March 15, 2017 @06:26PM (#13880450)
There is an annotation that can be used in the JDK to mark methods as polymorphic. The compiler will declare the method call with the types of the arguments and result where it is called, and the VM will handle it. This allows a very small set of core methods to take variable numbers or types of arguments without boxing them or having to put them in an array.