RFR: 8327839: Crash with unboxing and widening primitive conversion in switch

2024-03-12 Thread Aggelos Biboudis
In cases where the compiler needs to unbox a `long`, `float`, `double` and then run the exactness check, we were getting a crash. While the selector value is always boxed, the type (which controls the execution flow) was not, because the `selectorType` was wrong. This PR addresses this bug. ---

Re: RFR: 8327839: Crash with unboxing and widening primitive conversion in switch

2024-03-15 Thread Jan Lahoda
On Tue, 12 Mar 2024 14:06:11 GMT, Aggelos Biboudis wrote: > In cases where the compiler needs to unbox a `long`, `float`, `double` and > then run the exactness check, we were getting a crash. While the selector > value is always boxed, the type (which controls the execution flow) was not, > b

Re: RFR: 8327839: Crash with unboxing and widening primitive conversion in switch

2024-03-16 Thread Andrey Turbanov
On Tue, 12 Mar 2024 14:06:11 GMT, Aggelos Biboudis wrote: > In cases where the compiler needs to unbox a `long`, `float`, `double` and > then run the exactness check, we were getting a crash. While the selector > value is always boxed, the type (which controls the execution flow) was not, > b

Re: RFR: 8327839: Crash with unboxing and widening primitive conversion in switch [v2]

2024-03-18 Thread Aggelos Biboudis
> In cases where the compiler needs to unbox a `long`, `float`, `double` and > then run the exactness check, we were getting a crash. While the selector > value is always boxed, the type (which controls the execution flow) was not, > because the `selectorType` was wrong. This PR addresses this b