Check-in [a20e27f03e]

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

Overview
Comment:Correct compilation error.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a20e27f03ee966d1d37f863111a8b2410e1228dd
User & Date: stephanie.gawroriski 2019-12-01 15:47:08
Context
2019-12-01
16:43
Add base TODOs for parts that need to be done. check-in: fa307fb8b0 user: stephanie.gawroriski tags: trunk
15:47
Correct compilation error. check-in: a20e27f03e user: stephanie.gawroriski tags: trunk
15:46
Force objects to be allocated to at least the base size. check-in: b853c133f7 user: stephanie.gawroriski tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to runt/klib/supervisor/cc/squirreljme/jvm/task/TaskAllocator.java.

105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
	 * @since 2019/10/26
	 */
	public final int allocateObject(int __sz)
		throws IllegalArgumentException
	{
		// {@squirreljme.error SV0x Object allocation is less than the object
		// base size.}
		if (__sz < OBJECT_BASE_SIZE)
			throw new IllegalArgumentException("SV0x");
		
		// Allocate
		int rv = this.allocate(Allocator.CHUNK_BIT_IS_OBJECT, __sz);
		
		// Set initial count to one, to match new
		Assembly.memWriteInt(rv, Constants.OBJECT_COUNT_OFFSET,







|







105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
	 * @since 2019/10/26
	 */
	public final int allocateObject(int __sz)
		throws IllegalArgumentException
	{
		// {@squirreljme.error SV0x Object allocation is less than the object
		// base size.}
		if (__sz < Constants.OBJECT_BASE_SIZE)
			throw new IllegalArgumentException("SV0x");
		
		// Allocate
		int rv = this.allocate(Allocator.CHUNK_BIT_IS_OBJECT, __sz);
		
		// Set initial count to one, to match new
		Assembly.memWriteInt(rv, Constants.OBJECT_COUNT_OFFSET,