8347720: [BACKOUT] Portable implementation of FORBID_C_FUNCTION and ALLOW_C_FUNCTION

Reviewed-by: coleenp
This commit is contained in:
Kim Barrett 2025-01-14 17:42:24 +00:00
parent e6902cfca4
commit db76f47f27
32 changed files with 176 additions and 527 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -24,8 +24,6 @@
#ifndef UNITTEST_HPP
#define UNITTEST_HPP
#include "utilities/globalDefinitions.hpp"
#include <stdlib.h>
#include <stdio.h>
@ -51,10 +49,8 @@
#undef F2
#include "utilities/vmassert_uninstall.hpp"
BEGIN_ALLOW_FORBIDDEN_FUNCTIONS
#include "gmock/gmock.h"
#include "gtest/gtest.h"
END_ALLOW_FORBIDDEN_FUNCTIONS
#include "utilities/vmassert_reinstall.hpp"
#ifdef UNDEFINED_Log