Re: [PR] [JSPWIKI-1178] Address potential deadlock with JDK 21 Virtual Threads. [jspwiki]

2023-10-12 Thread Juan Pablo Santos Rodríguez
Hi Murray, to add some context to the PR, from what I understand, the important thing about the Synchronizer class, is more on the switch to use ReentrantLock instead of synchronized blocks, than the code readability/simplification. The Synchronizer class just captures an idiom throughout the code

Re: [PR] [JSPWIKI-1178] Address potential deadlock with JDK 21 Virtual Threads. [jspwiki]

2023-10-12 Thread Arturo Bernal
Hi Murray I'd like to clarify the main goal of my PR, which is to transition from traditional synchronized blocks to the more modern ReentrantLocks. The Synchronizer class is essentially a way to standardize this transition across the codebase. I agree with Juan Pablo's point about the benefits o

[PR] Replace 'size() == 0' with 'isEmpty()' [jspwiki]

2023-10-12 Thread via GitHub
arturobernalg opened a new pull request, #314: URL: https://github.com/apache/jspwiki/pull/314 (no comment) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe,

Re: [PR] [JSPWIKI-1178] Address potential deadlock with JDK 21 Virtual Threads. [jspwiki]

2023-10-12 Thread Murray Altheim
HI Arturo and Juan Pablo, I don't disagree with anything either of you have written. I'm all in favour of the ReentrantLock replacement via a Synchronizer pattern. I'm only suggesting, as does both Larman/Guthrie and the quoted section ("There is no need to replace synchronized blocks and method