Skip to content

Commit

Permalink
Merge pull request #2406 from AntelopeIO/oc_gs_warnremove_50
Browse files Browse the repository at this point in the history
[5.0] remove EOS VM OC's erroneous `GS register is not as expected` message
  • Loading branch information
spoonincode authored Oct 1, 2024
2 parents 665ca82 + d2b93df commit ab72721
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions libraries/chain/webassembly/runtimes/eos-vm-oc/executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,6 @@ executor::executor(const code_cache_base& cc) {
//if we're the first executor created, go setup the signal handling. For now we'll just leave this attached forever
static executor_signal_init the_executor_signal_init;

uint64_t current_gs;
if(arch_prctl(ARCH_GET_GS, &current_gs) || current_gs)
wlog("x86_64 GS register is not set as expected. EOS VM OC may not run correctly on this platform");

struct stat s;
FC_ASSERT(fstat(cc.fd(), &s) == 0, "executor failed to get code cache size");
code_mapping = (uint8_t*)mmap(nullptr, s.st_size, PROT_EXEC|PROT_READ, MAP_SHARED, cc.fd(), 0);
Expand Down

0 comments on commit ab72721

Please sign in to comment.