Re: RFR: 8330171: Lazy W^X switch implementation

2024-04-23 Thread Sergey Nazarkin
On Fri, 19 Apr 2024 07:44:17 GMT, Richard Reingruber wrote: >> An alternative for preemptively switching the W^X thread mode on macOS with >> an AArch64 CPU. This implementation triggers the switch in response to the >> SIGBUS signal if the *si_addr* belongs to the CodeCache area. With this

Re: RFR: 8330171: Lazy W^X switch implementation

2024-04-15 Thread Sergey Nazarkin
On Mon, 15 Apr 2024 08:33:25 GMT, Bernhard Urban-Forster wrote: > do you have numbers on how many transitions are done with your PR vs. the > current state when running the same program? With just simple **java -version** it is ~180 vs ~9500 (new vs old), for **java -help** ~1120 vs ~86300.

Re: RFR: 8330171: Lazy W^X switch implementation

2024-04-12 Thread Sergey Nazarkin
On Fri, 12 Apr 2024 15:26:03 GMT, Andrew Haley wrote: >> Hello Sergey. >> W^X mode was initially forced by Apple to prevent writing to executable >> memory, as a security feature. >> This change just eliminates this security feature at all, doesn't it ? >> Basically: "want to write to

RFR: 8330171: Lazy W^X swtich implementation

2024-04-12 Thread Sergey Nazarkin
An alternative for preemptively switching the W^X thread mode on macOS with an AArch64 CPU. This implementation triggers the switch in response to the SIGBUS signal if the *si_addr* belongs to the CodeCache area. With this approach, it is now feasible to eliminate all WX guards and avoid

Integrated: 8312246: NPE when HSDB visits bad oop

2023-07-20 Thread Sergey Nazarkin
On Tue, 18 Jul 2023 16:47:00 GMT, Sergey Nazarkin wrote: > Hi! > > This is a minor HSDB fix. It prints "bad oop" instead of throwing an NPE > message to the console when a corrupted object is found. This pull request has now been integrated. Changeset: a7427678 Auth

Re: RFR: 8312246: NPE when HSDB visits bad oop

2023-07-20 Thread Sergey Nazarkin
On Tue, 18 Jul 2023 16:47:00 GMT, Sergey Nazarkin wrote: > Hi! > > This is a minor HSDB fix. It prints "bad oop" instead of throwing an NPE > message to the console when a corrupted object is found. Chris, Serguei, thank you for the review. - PR Comment: h

RFR: 8312246: NPE when HSDB visits bad oop

2023-07-18 Thread Sergey Nazarkin
Hi! This is a minor HSDB fix. It prints "bad oop" instead of throwing an NPE message to the console when a corrupted object is found. - Commit messages: - 8312246: NPE when HSDB visits bad oop Changes: https://git.openjdk.org/jdk/pull/14922/files Webrev: