Skip to content

Commit 092c42e

Browse files
committed
fix comment: modify extra type in c-bindings
* docs/header/mmtk.h * vmbindings/dummyvm/api/mmtk.h * examples/reference_bump_allocator.c
1 parent 737e2a0 commit 092c42e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docs/header/mmtk.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ extern void mmtk_disable_collection();
4444
extern void* mmtk_alloc(MMTk_Mutator mutator,
4545
size_t size,
4646
size_t align,
47-
ssize_t offset,
47+
size_t offset,
4848
int allocator);
4949

5050
// Slowpath allocation for an object
5151
extern void* mmtk_alloc_slow(MMTk_Mutator mutator,
5252
size_t size,
5353
size_t align,
54-
ssize_t offset,
54+
size_t offset,
5555
int allocator);
5656

5757
// Perform post-allocation hooks or actions such as initializing object metadata

examples/reference_bump_allocator.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ extern MMTk_Mutator bind_mutator(void *tls) {
3131
return NULL;
3232
}
3333

34-
extern void* align_allocation(void* region, size_t align, ssize_t offset) {
34+
extern void* align_allocation(void* region, size_t align, size_t offset) {
3535
ssize_t region_signed = (ssize_t) region;
3636

3737
ssize_t mask = (ssize_t) (align - 1);
@@ -42,7 +42,7 @@ extern void* align_allocation(void* region, size_t align, ssize_t offset) {
4242
}
4343

4444
extern void* alloc(MMTk_Mutator mutator, size_t size,
45-
size_t align, ssize_t offset, int allocator) {
45+
size_t align, size_t offset, int allocator) {
4646

4747
void* result = align_allocation(IMMORTAL_SPACE.heap_cursor, align, offset);
4848
void* new_cursor = (void*)((size_t) result + size);
@@ -54,7 +54,7 @@ extern void* alloc(MMTk_Mutator mutator, size_t size,
5454
}
5555

5656
extern void* alloc_slow(MMTk_Mutator mutator, size_t size,
57-
size_t align, ssize_t offset, int allocator) {
57+
size_t align, size_t offset, int allocator) {
5858

5959
perror("Not implemented\n");
6060
exit(1);

vmbindings/dummyvm/api/mmtk.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ extern void mmtk_disable_collection();
4242
extern void* mmtk_alloc(MMTk_Mutator mutator,
4343
size_t size,
4444
size_t align,
45-
ssize_t offset,
45+
size_t offset,
4646
int allocator);
4747

4848
// Slowpath allocation for an object
4949
extern void* mmtk_alloc_slow(MMTk_Mutator mutator,
5050
size_t size,
5151
size_t align,
52-
ssize_t offset,
52+
size_t offset,
5353
int allocator);
5454

5555
// Perform post-allocation hooks or actions such as initializing object metadata

0 commit comments

Comments
 (0)