clebertsuconic commented on a change in pull request #5: ARTEMIS-2533 Support 
multiple architecture for ASYNCIO kernel by-pass
URL: 
https://github.com/apache/activemq-artemis-native/pull/5#discussion_r340253649
 
 

 ##########
 File path: 
src/main/c/org_apache_activemq_artemis_nativo_jlibaio_LibaioContext.c
 ##########
 @@ -32,15 +32,11 @@
 #include <fcntl.h>
 #include <stdlib.h>
 #include <pthread.h>
+#include <stdatomic.h>
 #include <limits.h>
 #include "org_apache_activemq_artemis_nativo_jlibaio_LibaioContext.h"
 #include "exception_helper.h"
 
-//x86 has a strong memory model and there is no need of HW fences if just 
Write-Back (WB) memory is used
-#define mem_barrier() __asm__ __volatile__ ("":::"memory")
-#define read_barrier() __asm__ __volatile__("":::"memory")
-#define store_barrier()        __asm__ __volatile__("":::"memory")
-
 
 Review comment:
   I understand what you mean now, after I tried it.
   
   this would require RHEL8 / CENTOS8, or a newer Kernel. 
   
   it would limit where this would be available to run. So, we need to keep it 
simple.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to