Skip to content
Permalink
Browse files
8240246: Avoid cast_to_oop from char*
Change type of gtest object from char[] to unsigned char[].

Reviewed-by: dholmes
  • Loading branch information
Kim Barrett committed Mar 2, 2020
1 parent c280d98 commit 96b61b8f4bcd493b56009efc4018b92f437db8c6
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/hotspot/gtest/oops/test_oop.cpp
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2020, 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
@@ -26,7 +26,7 @@
#include "unittest.hpp"
#include "utilities/globalDefinitions.hpp"

static char memory[32];
static unsigned char memory[32];

oop fake_object() {
return cast_to_oop(memory);

0 comments on commit 96b61b8

Please sign in to comment.