Skip to content

Commit

Permalink
[feat] Add membarrier system call
Browse files Browse the repository at this point in the history
Also, change the signature of maxine_cache_flush to Address. Doing so avoids
upcasting to Pointer when we have an Address and we don't need the enhanced
functionality of Pointer over Address at this point anyway.
  • Loading branch information
timhartley committed Nov 28, 2019
1 parent bd4db16 commit eb6b2a7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion com.sun.max/src/com/sun/max/vm/MaxineVM.java
Expand Up @@ -592,7 +592,13 @@ public static void registerCriticalMethod(CriticalMethod criticalEntryPoint) {
* @param length the number of instructions * sizeof one instruction
*/
@C_FUNCTION
public static native void maxine_cache_flush(Pointer start, int length);
public static native void maxine_cache_flush(Address start, int length);

/**
* Executes a membarrier(2) system call on Linux systems.
*/
@C_FUNCTION
public static native void syscall_membarrier();

@C_FUNCTION
public static native long arithmeticldiv(long x, long y);
Expand Down

0 comments on commit eb6b2a7

Please sign in to comment.