Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/aeron-io/aeron
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpt777 committed Feb 11, 2025
2 parents b44ce56 + b8df4ff commit 4479df2
Show file tree
Hide file tree
Showing 13 changed files with 49 additions and 195 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci-low-cadence.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ on:
types: run-slow-tests
schedule:
- cron: '0 0,12 * * *'
# push:
# branches:
# - master
# - 'release/**'
push:
branches:
- master
- 'release/**'
pull_request:
types: [opened, synchronize]
branches:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ on:
workflow_dispatch:
repository_dispatch:
types: run-commit-tests
# push:
# branches:
# - master
# - 'release/**'
push:
branches:
- master
- 'release/**'
pull_request:
types: [opened, synchronize]
branches:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ on:
workflow_dispatch:
repository_dispatch:
types: run-commit-tests
# push:
# branches:
# - master
# - release/**
push:
branches:
- master
- release/**
pull_request:
types: [opened, synchronize]
branches:
Expand Down
63 changes: 0 additions & 63 deletions .github/workflows/debug.yml

This file was deleted.

10 changes: 4 additions & 6 deletions aeron-client/src/main/cpp/concurrent/Atomic64.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@

#include "util/Platform.h"

#if defined(AERON_COMPILER_GCC)
#if defined(AERON_CPU_X64)
#include "concurrent/atomic/Atomic64_gcc_x86_64.h"
#else
#include "concurrent/atomic/Atomic64_gcc_cpp11.h"
#endif
#if defined(AERON_COMPILER_GCC) && defined(AERON_CPU_X64)
#include "concurrent/atomic/Atomic64_gcc_x86_64.h"
#elif defined(AERON_COMPILER_GCC) && defined(AERON_CPU_ARM)
#include "concurrent/atomic/Atomic64_gcc_cpp11.h"
#elif defined(AERON_COMPILER_MSVC) && defined(AERON_CPU_X64)
#include "concurrent/atomic/Atomic64_msvc.h"
#else
Expand Down
8 changes: 7 additions & 1 deletion aeron-client/src/main/cpp/util/Platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

#if defined(_M_X64)
#define AERON_CPU_X64 1

#else
#error Unsupported CPU!
#endif
Expand All @@ -42,6 +41,13 @@
#define AERON_CPU_X64 1
#endif

#if defined(__aarch64__)
#define AERON_CPU_ARM 1
#if defined(__STDC_NO_ATOMICS__)
#error C11 atomics are required to compile for aarch64!
#endif
#endif

#else
#error Unsupported compiler!
#endif
Expand Down
10 changes: 4 additions & 6 deletions aeron-client/src/main/cpp_wrapper/concurrent/Atomic64.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@

#include "util/Platform.h"

#if defined(AERON_COMPILER_GCC)
#if defined(AERON_CPU_X64)
#include "concurrent/atomic/Atomic64_gcc_x86_64.h"
#else
#include "concurrent/atomic/Atomic64_gcc_cpp11.h"
#endif
#if defined(AERON_COMPILER_GCC) && defined(AERON_CPU_X64)
#include "concurrent/atomic/Atomic64_gcc_x86_64.h"
#elif defined(AERON_COMPILER_GCC) && defined(AERON_CPU_ARM)
#include "concurrent/atomic/Atomic64_gcc_cpp11.h"
#elif defined(AERON_COMPILER_MSVC) && defined(AERON_CPU_X64)
#include "concurrent/atomic/Atomic64_msvc.h"
#else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ namespace aeron { namespace concurrent { namespace logbuffer { namespace LogBuff

const std::int32_t TERM_MIN_LENGTH = 64 * 1024;
const std::int32_t TERM_MAX_LENGTH = 1024 * 1024 * 1024;
const std::int32_t AERON_PAGE_MIN_SIZE = 4 * 1024;
const std::int32_t AERON_PAGE_MAX_SIZE = 1024 * 1024 * 1024;

#if defined(__GNUC__) || _MSC_VER >= 1900
static constexpr const int PARTITION_COUNT = 3;
Expand Down
8 changes: 7 additions & 1 deletion aeron-client/src/main/cpp_wrapper/util/Platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

#if defined(_M_X64)
#define AERON_CPU_X64 1

#else
#error Unsupported CPU!
#endif
Expand All @@ -42,6 +41,13 @@
#define AERON_CPU_X64 1
#endif

#if defined(__aarch64__)
#define AERON_CPU_ARM 1
#if defined(__STDC_NO_ATOMICS__)
#error C11 atomics are required to compile for aarch64!
#endif
#endif

#else
#error Unsupported compiler!
#endif
Expand Down
2 changes: 1 addition & 1 deletion aeron-driver/src/main/c/agent/aeron_driver_agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -1470,7 +1470,7 @@ static const char *dissect_cmd_in(int64_t cmd_id, const void *message, size_t le
snprintf(
buffer,
sizeof(buffer) - 1,
"streamId=%d clientId=%" PRId64 " correlationId=%" PRId64 " channel=%*.s",
"streamId=%d clientId=%" PRId64 " correlationId=%" PRId64 " channel=%.*s",
command->stream_id,
command->correlated.client_id,
command->correlated.correlation_id,
Expand Down
17 changes: 13 additions & 4 deletions aeron-driver/src/main/c/media/aeron_udp_channel_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ int aeron_udp_channel_transport_init(
{
transport->interceptor_clientds[i] = NULL;
}

if (NULL == params)
{
AERON_SET_ERR(EINVAL, "%s", "channel transport params is NULL");
Expand Down Expand Up @@ -584,12 +584,14 @@ static int aeron_udp_channel_transport_sendv(
struct mmsghdr msg[AERON_NETWORK_PUBLICATION_MAX_MESSAGES_PER_SEND];
size_t msg_i;

size_t msg_namelen = address == NULL ? 0 : AERON_ADDR_LEN(address);

for (msg_i = 0; msg_i < iov_length && msg_i < AERON_NETWORK_PUBLICATION_MAX_MESSAGES_PER_SEND; msg_i++)
{
msg[msg_i].msg_hdr.msg_control = NULL;
msg[msg_i].msg_hdr.msg_controllen = 0;
msg[msg_i].msg_hdr.msg_name = address;
msg[msg_i].msg_hdr.msg_namelen = AERON_ADDR_LEN(address);
msg[msg_i].msg_hdr.msg_namelen = msg_namelen;
msg[msg_i].msg_hdr.msg_flags = 0;
msg[msg_i].msg_hdr.msg_iov = &iov[msg_i];
msg[msg_i].msg_hdr.msg_iovlen = 1;
Expand Down Expand Up @@ -634,9 +636,16 @@ int aeron_udp_channel_transport_send(
int64_t *bytes_sent)
{
#if defined(HAVE_SENDMMSG)
if (1 == iov_length && NULL != transport->connected_address)
if (NULL != transport->connected_address)
{
return aeron_udp_channel_transport_send_connected(transport, iov, bytes_sent);
if (1 == iov_length)
{
return aeron_udp_channel_transport_send_connected(transport, iov, bytes_sent);
}
else
{
return aeron_udp_channel_transport_sendv(transport, NULL, iov, iov_length, bytes_sent);
}
}
else
{
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -1390,6 +1390,7 @@ tasks.register('copyTestLogs', Copy) {
include '/var/coredump/core*'
include '**/*.log'
include '**/*.tlog'
include '**/*.PML'
include '**/build/reports/tests/**'
include '**/build/test-results/**/*'
include 'LICENSE'
Expand Down
99 changes: 0 additions & 99 deletions cppbuild/debug.ps1

This file was deleted.

0 comments on commit 4479df2

Please sign in to comment.