Check-in [f600bc6e86]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Correct clearing again.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | wip-midlevel
Files: files | file ages | folders
SHA1: f600bc6e86828f9bff47c2238f1c4386adc51783
User & Date: stephanie.gawroriski 2020-06-29 02:28:23
Context
2020-06-29
03:25
Do not check bounds in String.charAt(), allow the exception to be thrown; Use System.arraycopy() in ByteArrayInputStream as it can be native; Use full native copies in System.arraycopy() and Arrays.copyOf(); Have a branch specifically for primitive types in System.arraycopy(); Add some pre-checks to optimize away everything else. check-in: 5ae3cf6070 user: stephanie.gawroriski tags: wip-midlevel
02:28
Correct clearing again. check-in: f600bc6e86 user: stephanie.gawroriski tags: wip-midlevel
02:20
Implement javaThread clear interrupt. check-in: 8d87b29fea user: stephanie.gawroriski tags: wip-midlevel
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to emulators/springcoat-vm/src/main/java/cc/squirreljme/vm/springcoat/MLEThread.java.

168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
		public Object handle(SpringThreadWorker __thread, Object... __args)
		{
			SpringFieldStorage field = MLEThread.__javaThread(__thread,
				__args[0]).fieldByNameAndType(false, 
				"_interrupted", "Z");
			
			// Get and clear the field value
			boolean old = (boolean)field.get();
			field.set(false);
			return old;
		}
	}, 
	
	/** {@link ThreadShelf#javaThreadFlagStarted(Thread)}. */
	JAVA_THREAD_FLAG_STARTED("javaThreadFlagStarted:(Ljava/lang/" +







|







168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
		public Object handle(SpringThreadWorker __thread, Object... __args)
		{
			SpringFieldStorage field = MLEThread.__javaThread(__thread,
				__args[0]).fieldByNameAndType(false, 
				"_interrupted", "Z");
			
			// Get and clear the field value
			Object old = field.get();
			field.set(false);
			return old;
		}
	}, 
	
	/** {@link ThreadShelf#javaThreadFlagStarted(Thread)}. */
	JAVA_THREAD_FLAG_STARTED("javaThreadFlagStarted:(Ljava/lang/" +