user manual code example race condition

dingd ntysdd at qq.com
Mon Mar 11 05:38:34 UTC 2019


this is recommended in the manual, it contains a race condition.

Interpreter interpreter = Interpreter.getInstance ();
if ( interpreter == null ) {
	interpreter = Interpreter.createInstance ();
}

getInstance and createInstance should be swapped.


More information about the armedbear-devel mailing list