> *I meant that IntelliJ run configuration for JUnit has an option forkmode 
and I am pretty sure the maven plugin also has an option for JVM forking. 
For example you can configure that every test method should run in a forked 
VM in IntelliJ. By default it doesn't do that. *

Ah, cool, thanks.  I see that option now.

[image: download.png]

With it on, I get different results again.  Different to maven, different 
to no fork, and different to JavaScript.

And if I run it through Maven with "mvn test -DforkCount=1 
-DreuseForks=false", I get results that are completely different again.

They are still consistent though.  Ie: Running it multiple times, always 
gets the same results.

On Tuesday, 29 April 2025 at 8:34:25 pm UTC+10 Jens wrote:

> *> Maybe the result slightly changes if JVM decides to optimize a hot code 
> path in case the JVM is reused. You might want to check how maven and your 
> intellij run configuration are configured in terms of JVM forking.*
>
> IntelliJ seems to add the options:
> -Dkotlinx.coroutines.debug.enable.creation.stack.trace=false 
> -Ddebugger.agent.enable.coroutines=true 
> -Dkotlinx.coroutines.debug.enable.flows.stack.trace=true 
> -Dkotlinx.coroutines.debug.enable.mutable.state.flows.stack.trace=true 
> -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 
> -Dsun.stderr.encoding=UTF-8
>
> So I added those to MAVEN_OPTS, but it didn't seem to make any 
> difference.  I also tried adding @NotThreadSafe to my test suite, again 
> no difference.
>
>
> I meant that IntelliJ run configuration for JUnit has an option forkmode 
> and I am pretty sure the maven plugin also has an option for JVM forking. 
> For example you can configure that every test method should run in a forked 
> VM in IntelliJ. By default it doesn't do that. 
>
> -- J.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/google-web-toolkit/0cb31590-9d03-488b-894c-92492a0395ban%40googlegroups.com.

Reply via email to