Check-in [6e3ea4929a]

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

Overview
Comment:Count the return register field after the copy.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:6e3ea4929a096325cb10a5aee26d7870485b9b9e
User & Date: stephanie.gawroriski 2019-06-13 22:40:49
Context
2019-06-13
23:17
Add more debug notes to GC object. check-in: 9745a97fdb user: stephanie.gawroriski tags: trunk
22:40
Count the return register field after the copy. check-in: 6e3ea4929a user: stephanie.gawroriski tags: trunk
22:40
Reference count objects before they are returned. check-in: 6a5232a82c user: stephanie.gawroriski tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to runt/libs/tool-classfile/dev/shadowtail/classfile/nncc/NearNativeByteCodeHandler.java.

1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
				codebuilder.addCopy(a + 1, b + 1);
			}
			else
				codebuilder.addCopy(a, b);
			
			// If we are returning an object, we need to reference count it
			if (__in.isObject())
				this.__refCount(__in.register);
		}
		
		// Uncount anything which was enqueued
		for (int q : this.state.result.enqueue())
			this.__refUncount(q);
		
		// Do the return







|







1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
				codebuilder.addCopy(a + 1, b + 1);
			}
			else
				codebuilder.addCopy(a, b);
			
			// If we are returning an object, we need to reference count it
			if (__in.isObject())
				this.__refCount(NativeCode.RETURN_REGISTER);
		}
		
		// Uncount anything which was enqueued
		for (int q : this.state.result.enqueue())
			this.__refUncount(q);
		
		// Do the return