Jim Apple has posted comments on this change. ( http://gerrit.cloudera.org:8080/10243 )
Change subject: IMPALA-6882: prevent instr. hoist from CpuInfo::IsSupported() ...................................................................... Patch Set 3: Code-Review+2 (1 comment) http://gerrit.cloudera.org:8080/#/c/10243/2/be/src/util/bit-util-test.cc File be/src/util/bit-util-test.cc: http://gerrit.cloudera.org:8080/#/c/10243/2/be/src/util/bit-util-test.cc@314 PS2, Line 314: __asm__ __volatile__("ud2" : "=a"(result): "mr"(arg): "cc"); > It definitely crashes if the instruction is executed, it isn't hoisted out And, even if we could, if GCC decided not to hoist it in a new compiler version that would break the test. -- To view, visit http://gerrit.cloudera.org:8080/10243 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I9ec51bdfcb9455c93ff69827929a59fcccb81b80 Gerrit-Change-Number: 10243 Gerrit-PatchSet: 3 Gerrit-Owner: Tim Armstrong <[email protected]> Gerrit-Reviewer: Jim Apple <[email protected]> Gerrit-Reviewer: Tim Armstrong <[email protected]> Gerrit-Comment-Date: Tue, 01 May 2018 18:45:50 +0000 Gerrit-HasComments: Yes
